package com.warren.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * User entity
 *
 * @author warren
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
        private Long id;
        private String userName;

//    @JsonIgnore
    private String password;
    private String email;
    private Long phoneNumber;
    private String description;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private List<Role> roles;
}
